DOORS Explorer Directory

To begin with, I am creating a program which uses file streams to save data and then reload it at a later date. My program works fine when run from a module however, it really needs to work properly when run from the Explorer. The problem I am running into is that the directory that the Explorer points to is the folder in which the dxl files are located however the current directory when the program is run from a module is my desktop. Thus, when run from the Explorer it creates a secound file in the dxl directory and cannot "see" the file on the desktop. Is there anyway to change what Windows directory is being pointed at currently?
rp17 - Thu Jan 14 10:56:19 EST 2010

Re: DOORS Explorer Directory
Peter_Albert - Thu Jan 14 11:28:43 EST 2010

Try absolute pathnames instead of relative ones, i.e. instead of

Stream out = write "myFile.txt"

use something like

Stream out = write "C:\\Documents and Settings\\YourName\\Desktop\\myFile.txt"

(note that you have to escape the backslashes --> "\\"

Peter

Re: DOORS Explorer Directory
rp17 - Thu Jan 14 12:25:18 EST 2010

Peter_Albert - Thu Jan 14 11:28:43 EST 2010

Try absolute pathnames instead of relative ones, i.e. instead of

Stream out = write "myFile.txt"

use something like

Stream out = write "C:\\Documents and Settings\\YourName\\Desktop\\myFile.txt"

(note that you have to escape the backslashes --> "\\"

Peter

Thanks for the suggestion. I had tried that but I was unable to "escape" the backslashes as you mentioned. Any suggestions?

Re: DOORS Explorer Directory
rp17 - Thu Jan 14 12:27:47 EST 2010

rp17 - Thu Jan 14 12:25:18 EST 2010
Thanks for the suggestion. I had tried that but I was unable to "escape" the backslashes as you mentioned. Any suggestions?

I figured out what you meant. That worked great! Thanks for the help.